<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

class block_type_dropdown_model extends Model
{
	var $name = '';
	var $value = '';
	var $items = array();
	var $onchange;
	
	function block_type_dropdown_model()
	{
		parent::Model();
		
		/*$this->db->where(BLOCK_FRANCHISE_ID, $this->admin_id());
		$this->db->order_by(BLOCK_NAME);		
		$q = $this->db->get(BLOCK);
		if ($q->num_rows())
			$this->items = $q->result();*/
	}
	
	function admin_id()
	{
		global $CI;
		$a = $CI->session->userdata('admin_auth_logged');
		return $a['admin_id'];
	}
	
	function addOption($o)
	{
		array_unshift($this->items, (object) $o);
	}
}

?>